use microphone::{CustomError, MediaPlayer};

// https://feater.top/ffmpeg/ffmpeg-capature-camera-data-and-encode-yuv-to-h264-under-linux/
#[tokio::main]
async fn main() -> Result<(), CustomError> {
    let mut player = MediaPlayer::new(
        "alsa".to_owned(),
        "hw:0".to_owned(),
        "output_audio.aac".to_owned(),
    );
    player.run().await?;

    Ok(())
}
